home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20030409-20031118 / 000302_nugulus@netscape.net_Thu Sep 25 17:58:27 EDT 2003.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  61 lines

  1. Article: 14546 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!phl-feed.news.verio.net!dfw-feed.news.verio.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!in.100proofnews.com!in.100proofnews.com!prodigy.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr22.news.prodigy.com.POSTED!d286b79e!not-for-mail
  3. From: Jun Zhang <nugulus@netscape.net>
  4. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1
  5. X-Accept-Language: en-us, en
  6. MIME-Version: 1.0
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: How to make use of a terminal server
  9. Content-Type: text/plain; charset=us-ascii; format=flowed
  10. Content-Transfer-Encoding: 7bit
  11. Lines: 39
  12. Message-ID: <gQHcb.483$z11.142@newssvr22.news.prodigy.com>
  13. NNTP-Posting-Host: 159.66.144.147
  14. X-Complaints-To: abuse@prodigy.net
  15. X-Trace: newssvr22.news.prodigy.com 1064520076 ST000 159.66.144.147 (Thu, 25 Sep 2003 16:01:16 EDT)
  16. NNTP-Posting-Date: Thu, 25 Sep 2003 16:01:16 EDT
  17. Organization: SBC http://yahoo.sbc.com
  18. X-UserInfo1: FKPO@MON[JS]R\XX[ZOD]_\@VR]^@B@MCPWZKB]MPXHTEPIB_NVUAH_[BL[\IRKIANGGJBFNJF_DOLSCENSY^U@FRFUEXR@KFXYDBPWBCDQJA@X_DCBHXR[C@\EOKCJLED_SZ@RMWYXYWE_P@\\GOIW^@SYFFSWHFIXMADO@^[ADPRPETLBJ]RDGENSKQQZN
  19. Date: Thu, 25 Sep 2003 20:01:16 GMT
  20. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14546
  21.  
  22. I have access to a terminal server where a modem pool is served. 
  23. Invokation of the modem is like the following,
  24.  
  25. telnet hostname portnum
  26. Username:   (type name and return)
  27. Password:   (type pass and return)
  28. atdtphonenumber
  29.  
  30. I tried to use the following kermit script to automate the authentication,
  31.  
  32. #!/usr/local/bin/kermit
  33. def myuserid username
  34. def mypasswd password
  35. set carrier-watch off
  36. set host hostname portnum
  37. for \%i 1 10 1 {
  38.      input 20 Username:
  39.      if success break
  40.      output \13
  41. }
  42. if > \%i 10 exit 1 No login prompt.
  43. output \m(myuserid)\13
  44.  
  45. for \%j 1 10 1 {
  46.     input 10 Password:
  47.     if success break
  48.     output \13
  49. {
  50. if > \%j 10 exit No Password prompt.
  51. output \m(mypasswd)\13
  52. undef mypasswd
  53.  
  54. but password is always prompted interactively. My immediate purpose is 
  55. to use the dial command in the kermit script, how can I do it?
  56.  
  57.  
  58.  
  59. Jun
  60.  
  61.